﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Htse.Blue.Models;
using System.Web.Mvc;
using System.Collections;

namespace Htse.Blue.Models.ViewModels
{
	public class UmpireFormViewModel
	{
		public Umpire Umpire { get; private set; }

		public SelectList AccountNames { get; private set; }

		public string OriginalAccountName { get; private set; }

		public UmpireFormViewModel(Umpire umpire, IEnumerable accountNames)
		{
			Umpire = umpire;

			AccountNames = new SelectList(accountNames);

			OriginalAccountName = null;
		}

		public UmpireFormViewModel(Umpire umpire, IEnumerable accountNames, string selectedAccountName, string originalAccountName)
		{
			Umpire = umpire;

			AccountNames = new SelectList(accountNames, selectedAccountName);

			OriginalAccountName = originalAccountName;
		}
	}
}
